package com.sinosoft.vaccinetoai.utils.retry;


/**
 * @author xiazhihao
 * @ClassName: RetryableTask
 * @ClassNameExplain:
 * @Description: 重试任务函数接口
 * @date 2024/6/13 11:29
 */
@FunctionalInterface
public interface RetryableTask<T> {

    /**
     * 任务执行
     * @return
     * @throws Exception
     */
    T execute() throws Exception;

}
